package cn.edu.ctbu.dp01.dao;

import cn.edu.ctbu.dp01.entity.teacher;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeacherRepository extends JpaRepository<teacher, Integer> {
    /*
     * 根据姓名模糊查询教师
     * @param name 教师姓名 字符串
     * @return List<teacher>
     */
    List<teacher> findByNameLike(String name);
}